<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<f:view>
    <t:div>
        <h:form>
            <h:panelGrid columns="1" bgcolor="#A52A2A" width="100%">
                <h:outputLabel style="font-weight:bold; color:#FFF8DC;" value="Aprobar Contenido del PreEvento" />
            </h:panelGrid>
            <h:outputLabel value="#{PreEventoController.preEventoVerifContenido.preNombre}"/>
            <h:messages id="lblMessages" showDetail="true" style="color:red;"/>
            <rich:editor id="editor" width="600" height="450" value="#{PreEventoController.preEventoVerifContenido.preDetalle}"
                         theme="advanced" plugins="save,paste" readonly="true">
                <f:param name="theme_advanced_buttons1" value="bold,italic,underline,cut,copy,paste,pasteword"/>
                <f:param name="theme_advanced_toolbar_location" value="top"/>
                <f:param name="theme_advanced_toolbar_align" value="left"/>
            </rich:editor>
            <h:panelGrid columns="2" >
                <h:outputLabel value="Observaciones"/>
                <h:inputTextarea value="#{PreEventoController.preEventoVerifContenido.preObservacionContenido}" cols="40" rows="5"/>
            </h:panelGrid>
            <h:panelGrid columns="3" >
                <h:commandButton value="Atras" action="listar" image="/img/btnAtras.gif"/>
                <h:commandButton value="Desaprobar" action="#{PreEventoController.desaprobarContenido}" />
                <h:commandButton value="Aprobar" action="#{PreEventoController.aprobarContenido}" />
            </h:panelGrid>
        </h:form>
    </t:div>
</f:view>

